package zhou.jan07.self_contest04;

public class Number {
	
	private int n1,n2;
	

	Number(int n1,int n2){
		this.n1=n1;
		this.n2=n2;
	}
	
    public void addtion(){
    	int sum=n1+n2;
    	System.out.println("两数相加为："+sum);
    }
    
    public void subtration(){
    	int difference=n1-n2;
    	System.out.println("两数相减为："+difference);
    }
    
    public void multiplication(){
    	int product=n1*n2;
    	System.out.println("两数相乘为："+product);
    }

    public void division(){
    	double quotient=n1/n2;
    	System.out.println("两数相除为："+quotient);
    }
    

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Number operation=new Number(12,3);
		operation.addtion();
		operation.subtration();
		operation.multiplication();
		operation.division();
		
		

	}

}
